@import '~$d/css/common/mixin';
body,html{
  background-color: @gray-f7;
}
body{
  padding-top: @header-height;
}
.main_box {
  .bodyCommonStyle();
  padding: 20px 35px;
  .headline {
    margin-bottom: 26px;
  }
}

.work-space {
  display: flex;
  .excellent{
    color: @theme-color;
  }
  .bad{
    color: @red-weight;
  }
  .form-control:focus {
    box-shadow: none;
    border-color: #D6D3CE;
  }
  .work-space-navigation {
    flex: 0 0 320px;
    width: 320px;
    padding-right: 20px;
    position: relative;
    .work-tools-list {
      border: 1px solid @gray-e5;
      .work-tool-item {
        .work-tool-name {
          padding: 14px 22px;
          background-color: @gray-e5;
        }
        .work-tool-content {
          padding: 26px 22px 24px;
          &.tool-modify-attr {
            .iconfont {
              margin-right: 8px;
              line-height: 1;
              padding: 4px;
              border-radius: 8px;
              transition: all .4s;
              &:before {
                display: block;
                transition: all .4s;
              }
              &:last-child {
                margin-right: 0;
              }
              &:hover {
                background-color: @gray-e5;
              }
              &.clockwise:hover {
                &:before {
                  transform: rotateZ(360deg);
                }
              }
              &.counterclockwise:hover {
                &:before {
                  transform: rotateZ(-360deg);
                }
              }
              &.horizontal-flip:hover {
                &:before {
                  transform: rotateY(-180deg);
                }
              }
              &.vertical-flip:hover {
                &:before {
                  transform: rotateX(180deg);
                }
              }
            }
          }
          &.modify-size {
            .text {
              overflow: hidden;
              margin-bottom: 10px;
            }
            .current-range {
              margin: 10px 0 20px;
            }
            .custom-size {
              .tool-lock-scale {
                padding: 0 14px;
                display: table-cell;
                vertical-align: bottom;
                color: @theme-color;
                cursor: pointer;
                .iconfont.active {
                  color: @gray-9c;
                }
              }
              .size-input {
                display: table-cell;
                vertical-align: middle;
                width: 50%;
                >p {
                  margin-bottom: 6px;
                }
              }
            }
          }
          &.image-compress {
            >p {
              margin-bottom: 6px;
            }
            >.form-control {
              width: 102px;
              display: inline-block;
            }
            >span {
              vertical-align: middle;
            }
          }
          .tool-name-text {
            vertical-align: middle;
          }
          .bootstrap-select {
            margin-right: 20px;
            margin-left: 6px;
          }
          .iconfont {
            vertical-align: middle;
            font-size: 22px;
          }
          .tool-margin-top {
            margin-top: 10px;
          }
        }
        .btn {
          padding: 4px 12px;
          min-width: 70px;
        }
      }
    }
    .ivu-slider-wrap {
      background-color: transparent;
      border: 1px solid @gray-e5;
      height: 12px;
      border-radius: 20px;
    }
    .ivu-slider-button-wrap {
      width: 16px;
      height: 16px;
      top: 50%;
      margin-top: -8px;
      .ivu-tooltip-rel {
        .ivu-slider-button {
          background-color: @theme-color;
          border-color: @theme-color;
          height: 16px;
          width: 16px;
        }
      }
    }
    .ivu-slider-bar {
      background-color: transparent;
    }
    .wrapper{
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
    }
  }
  .work-space-image-area {
    flex: 1;
    .file-drag-area {
      background-color: #f7f7f7;
      height: 100%;
      text-align: center;
      border: 3px solid #f7f7f7;
      transition: all .4s;
      &.drag-in {
        border-color: @theme-color;
      }
      .btn {
        position: relative;
        top: 50%;
        width: 160px;
        margin-top: -17px;
      }
    }
    .image-edit-area {
      height: 100%;
      text-align: center; //background-image: url(./transparent-bg.jpg);
      background-image: url(../../../images/pic_preview/pic-preview-bg.png);
      position: relative;
      border: 1px solid @gray-e5;
      img {
        max-width: 100%;
        max-height: 100%;
        &.not-crop {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
    }
  }
  .crop-controll {
    position: absolute;
    right: 0;
    bottom: -40px;
    .btn {
      background-color: rgba(0, 0, 0, .4);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .6);
      min-width: 70px;
      transition: all .4s;
      margin-left: 8px;
      &:hover {
        background-color: rgba(0, 0, 0, .7);
      }
    }
  }
}

.img-handle-control-btns {
  margin-top: 30px;
  font-size: 0;
  .btn {
    font-size: 14px;
    min-width: 70px;
    margin-right: 20px;
  }
}
